<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>义卖商城</title>
    <link href="<?php echo MODULE_URL;?>template/mobile/shop/css/shop-index.min.css?v20151019" rel="stylesheet">
    <style type="text/css">
		.goods-item-list li:nth-child(1){width:100.000%;}
		.goods-item-list li{width:50.000%;}
    </style>
</head>
<body>
<div class="viewport">
    <div class="tabs tabs-icon-top">
    <a href="<?php echo $this->createMobileUrl('mall')?>" class="tab-item">
        <i class="icon tab-icon icon-ic_shop_active tab_active"></i>
        义卖商城
    </a>
    <a href="<?php echo $this->createMobileUrl('me')?>" class="tab-item">
        <i class="icon tab-icon icon-ic_user_acount"></i>
        我
    </a>
</div>
    
    <div class="floor">
        <div class="category">
        {loop $goods_class $gl}
            <a style="width:25%" href="<?php echo $this->createMobileUrl('category',array('goods_class'=>$gl['goods_class']));?>"><span>{$gl['goods_class']}</span></a>
        {/loop}            
        </div>
    </div>

    <div class="floor relative-container" >
        <a href="{$mall_set['banner_link']}">
            <img class="full-image img-hot-sale-cover" src="{$_W['attachurl']}{$mall_set['banner']}" alt=""/>
            <div class="div-recommend-box">
                <span class="recommend-slogan"> </span>
                <span class="recommend-sale-time"></span>
            </div>
        </a>
    </div>
 	<?php foreach ($all_goods as $key => $value) {?>
 		
        <div class="floor " style="display: inline-block">
            <a href="<?php echo $this->createMobileUrl('category', array('goods_class'=>$key))?>" class="title-nav">
                <span class="text-style-section-name ">{$key}</span>
                <i class="icon-ic_chevron_right "> </i>
                <span class="text-style-section-name-right ">查看更多</span>

            </a>
        
            <ul class="goods-item-list">
                <?php foreach ($value as $k) {?>
                <li style="" class="">
                    <a href="<?php echo $this->createMobileUrl('good_detail', array('goods_id'=>$k['goods_id']));?>" class="a-tag-goods-info">
                        <div class="shop-item-img-box">
                            <img src="{$_W['attachurl']}{$k['goods_pic']}" class="full-image">

                        </div>

                        <div class="item-desc-panel" >
                            <span class="text-style-caption" >{$k['goods_name']}</span>
                            <span class="text-style-price item-title-text ">￥{$k['goods_price']}</span>
                        </div>
                    </a>
                </li>
                <?php }?>
            </ul>
            
        </div>       
   <?php }?>
     
    
    <div class="text-center text-style-label">{$mall_set['copyright']}</div>
</div>
<div style="height: 60px"></div>

<script type="text/javascript" src="<?php echo MODULE_URL;?>template/mobile/shop/js/stats.js?sId=50537340" charset="UTF-8"></script>

</body>
</html>